package com.ld.hpfs.service.impl;


import java.util.ArrayList;
import java.util.HashMap;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ld.hpfs.dao.ErrorDetailMapper;
import com.ld.hpfs.service.ErrorDetailService;
@Service
public class ErrorDetailServiceImpl implements ErrorDetailService{
	private static final Logger logger = LoggerFactory.getLogger(ErrorDetailServiceImpl.class);
	
	@Autowired
	private ErrorDetailMapper errorDetailMapper;
	
	@Override
	public ArrayList<HashMap<String,Object>> getErrorDetailList(HashMap<String,Object> param){
		int count = errorDetailMapper.getErrorDetailListCount(param);
		if(count == 0){
			return null;
		}else{
			param.put("pageCount", count);
			return errorDetailMapper.getErrorDetailList(param);
		}
	}
}